/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_role.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_ROLE
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_role.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_ROLE::CTable_PPM_ROLE( )
 :NPCRecordSet( )
{
  setTableName( "PPM_ROLE" );
  prepareTable();
  prepareQuery();
 
  ROLE_ID.setField( "ROLE_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ROLE_ID );
  makeKeyItem( ROLE_ID ); 
  ROLE_NAME.setField( "ROLE_NAME", DATA_CHAR, 64, 0 );
  makeTableItem( ROLE_NAME );
  STATE.setField( "STATE", DATA_CHAR, 3, 0 );
  makeTableItem( STATE );
  STATE_DATE.setField( "STATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( STATE_DATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}


CTable_PPM_ROLE::CTable_PPM_ROLE( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_ROLE" );
  prepareTable();
  prepareQuery();
 
  ROLE_ID.setField( "ROLE_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ROLE_ID );
  makeKeyItem( ROLE_ID ); 
  ROLE_NAME.setField( "ROLE_NAME", DATA_CHAR, 64, 0 );
  makeTableItem( ROLE_NAME );
  STATE.setField( "STATE", DATA_CHAR, 3, 0 );
  makeTableItem( STATE );
  STATE_DATE.setField( "STATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( STATE_DATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}

CTable_PPM_ROLE::~CTable_PPM_ROLE( )
{
    close();
}

